package com.frxuexi.repair

import com.frxuexi.lib_base.entity.RepairBeanItem
import com.frxuexi.lib_base.mvi.IUiIntent

sealed class RepairIntent:IUiIntent {
    data object getRepairs:RepairIntent()

    data class getRepairsByUname(val uname:String):RepairIntent()
    data class getRepairsByNum(val num:String):RepairIntent()

    data class deleteRepair(val id:Int):RepairIntent()

    data class addRepair(val item:RepairBeanItem):RepairIntent()

    data class getRepairById(val id:Int):RepairIntent()

    data class updateRepair(val id:Int,val item:RepairBeanItem):RepairIntent()

    data class upload(val name:String,val path:String):RepairIntent()
}